Ext.define('appmod.view.resources.UrlRegDashboard', {
    extend: 'Ext.panel.Panel',

    layout: {
        type: 'border'
    },
    region: 'center',
	title:'链接登记',

    initComponent: function() {
        var me = this;

        Ext.applyIf(me, {
            items: [
                {
                    xtype: 'panel',
                    padding: '5 5 5 0',
                    layout: {
                        type: 'border'
                    },
                    region: 'center',
                    dockedItems: [
                        {
                            xtype: 'toolbar',
                            dock: 'top',
                            items: [
                                {
                                    xtype: 'button',
                                    text: '删除已登记'
                                },
                                {
                                    xtype: 'button',
                                    text: '登记设置'
                                }
                            ]
                        }
                    ],
                    items: [
                        {
                            xtype: 'gridpanel',
                            padding: '5 5 0 5',
                            region: 'center',
                            columns: [
                                {
                                    xtype: 'gridcolumn',
                                    width: 250,
                                    dataIndex: 'string',
                                    text: '应用链接'
                                },
                                {
                                    xtype: 'gridcolumn',
                                    width: 250,
                                    dataIndex: 'string',
                                    text: '链接类型'
                                },
                                {
                                    xtype: 'gridcolumn',
                                    width: 250,
                                    dataIndex: 'string',
                                    text: '默认访问权限'
                                },
                                {
                                    xtype: 'booleancolumn',
                                    width: 250,
                                    dataIndex: 'boolean',
                                    text: '是否已登记'
                                }								
                            ],
                            viewConfig: {

                            },
                            selModel: Ext.create('Ext.selection.CheckboxModel', {

                            })
                        }
                    ]
                },
                {
                    xtype: 'treepanel',
                    padding: '5 0 5 5',
                    width: 160,
                    region: 'west',
                    split: true,
                    viewConfig: {

                    }
                }
            ]
        });

        me.callParent(arguments);
    }
});